-- GENERATED SPELL FOR [Grimscale Forager] --


function spell0_15670(pUnit, Event) --@Bottle of Poison,n/a--
pUnit:FullCastSpellOnTarget(7365,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15670', 30000, 1)
end

function spell1_15670(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(26661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15670', 10296, 1)
end

function Sorts_15670(pUnit, Event)
local choix_sorts_15670 = math.random(0, 1)
if choix_sorts_15670 == 0 then
pUnit:RegisterEvent('spell0_15670', 1, 1)
end
if choix_sorts_15670 == 1 then
pUnit:RegisterEvent('spell1_15670', 1, 1)
end
end

function mob15670_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15670', math.random(1500, 3000), 1)
end

function mob15670_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15670_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15670_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15670, 1, 'mob15670_Action')
RegisterUnitEvent(15670, 2, 'mob15670_Leave')
RegisterUnitEvent(15670, 3, 'mob15670_Kill')
RegisterUnitEvent(15670, 4, 'mob15670_Die')
